package com.nbgroup.config;

import com.baomidou.mybatisplus.autoconfigure.DdlApplicationRunner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.util.List;
@Component

public class DdlConfig {
    @Bean
    public DdlApplicationRunner ddlApplicationRunner (@Autowired(required = false)List ddlList){
        return new DdlApplicationRunner(ddlList);
    }
}
